<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:66:"D:\dev\project\skycaiji/SkycaijiApp/admin\view\collected\list.html";i:1665552311;s:63:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\main.html";i:1665552311;s:72:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\header_public.html";i:1665552311;s:65:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\footer.html";i:1665552311;s:72:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\footer_public.html";i:1665552311;s:74:"D:\dev\project\skycaiji\SkycaijiApp\common\view\common\browser_is_old.html";i:1665552311;s:75:"D:\dev\project\skycaiji\SkycaijiApp\common\view\common\page_translator.html";i:1665552311;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <title><?php echo g_sc('p_title')?(g_sc('p_title').' - '):''; ?>蓝天采集器后台管理</title>
  <meta name="generator" content="skycaiji" />
  <link rel="icon" href="">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="/public/bootstrap/css/bootstrap.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/public/addon/font-awesome/css/font-awesome.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <!-- Ionicons -->
  <link rel="stylesheet" href="/public/addon/Ionicons/css/ionicons.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <!-- Theme style -->
  <link rel="stylesheet" href="/public/adminlte/dist/css/AdminLTE.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <link rel="stylesheet" href="/public/adminlte/dist/css/skins/_all-skins.min.css?<?php echo \think\Config::get('html_v'); ?>">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="/public/addon/adminlte/html5shiv.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <script src="/public/addon/adminlte/respond.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <![endif]-->

  <!-- Google Font -->
  <!-- <link rel="stylesheet" href="/public/addon/adminlte/google-font.css?<?php echo \think\Config::get('html_v'); ?>"> -->
  
  <!-- jQuery -->
  <script src="/public/jquery/jquery.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- else -->
  <script type="text/javascript" src="/public/static/js/base64.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <link href="/public/static/css/toastr.css?<?php echo \think\Config::get('html_v'); ?>" rel="stylesheet" type="text/css">
  <script src="/public/static/js/toastr.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- jQuery UI 1.11.4 -->
  <script src="/public/addon/adminlte/jquery-ui.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- Bootstrap 3.3.7 -->
  <script src="/public/bootstrap/js/bootstrap.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- FastClick -->
  <script src="/public/addon/adminlte/fastclick.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- AdminLTE App -->
  <script src="/public/adminlte/dist/js/adminlte.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- custom -->
  <script src="/public/static/js/common.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <script src="/public/static/js/admin.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <link href="/public/static/css/admin.css?<?php echo \think\Config::get('html_v'); ?>" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="/public/static/js/langs/<?php echo defined('LANG_SET')?LANG_SET:config('DEFAULT_LANG'); ?>.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <script type="text/javascript">var site_config={root:"",pub:"/public",usertoken:"<?php echo g_sc('usertoken'); ?>",clientinfo:"<?php echo g_sc('clientinfo'); ?>"};</script>


<script type="text/javascript" src="/public/static/js/admin/collected.js?<?php echo \think\Config::get('html_v'); ?>"></script>

</head>
<body class="skin-blue" data-spy="scroll" data-target="#scrollspy">
<script type="text/javascript">admincpInit();</script>
<div class="wrapper">
<header class="main-header">
  	<a href="<?php echo url('Admin/Backstage/index'); ?>" class="logo">
    	蓝天采集器
  	</a>
  	<nav class="navbar navbar-static-top" role="navigation">
		<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
	    	<span class="sr-only"> </span>
	    	<span class="icon-bar"></span>
	    	<span class="icon-bar"></span>
	    	<span class="icon-bar"></span>
	    </a>
		<div class="navbar-custom-menu">
		<ul class="nav navbar-nav">
			<li class="dropdown tasks-menu">
				<a href="javascript:;" id="menu_backstage_task">
            		<i class="fa fa-flag-o"></i>
            		<span class="label label-warning"></span>
            	</a>
			</li>
			<li class="dropdown user user-menu">
        		<a href="#" class="dropdown-toggle" data-toggle="dropdown">
            		<span class="glyphicon glyphicon-user"></span>
              		<span><?php echo g_sc('user','username'); ?></span>
            	</a>
            	<ul class="dropdown-menu">
            		<li><a href="<?php echo url('User/edit?uid='.g_sc('user','uid')); ?>"><?php echo \think\Lang::get('user_edit'); ?></a></li>
				  	<li><a href="<?php echo url('Admin/Index/logout'); ?>"><?php echo \think\Lang::get('logout'); ?></a></li>
          		</ul>
			</li>
		</ul>
		</div>
	</nav>
</header>
<?php $curMenu=array(strtolower(request()->controller())=>' menu-open cur-menu'); $curSubm=array(strtolower(request()->action())=>' menu-open cur-menu'); ?>
<aside class="main-sidebar">
<section class="sidebar">
<ul class="sidebar-menu" data-widget="tree">
	<li class="treeview<?php echo $curMenu['setting']; ?>">
		<a href="#">
			<i class="fa fa-cog"></i> <span><?php echo \think\Lang::get('setting'); ?></span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Setting/caiji'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_caiji'); ?></a></li>
			<li><a href="<?php echo url('Admin/Setting/site'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_site'); ?></a></li>
			<li><a href="<?php echo url('Admin/Setting/store'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_store'); ?></a></li>
			<li><a href="<?php echo url('Admin/Setting/email'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_email'); ?></a></li>
		</ul>
	</li>
   	<li class="treeview<?php echo $curMenu['task']; ?><?php echo $curMenu['taskgroup']; ?><?php echo $curMenu['collector']; ?><?php echo $curMenu['release']; ?>">
       	<a href="#">
       		<i class="fa fa-tasks"></i> <span><?php echo \think\Lang::get('task'); ?></span>
      		<span class="pull-right-container">
       			<i class="fa fa-angle-left pull-right"></i>
      		</span>
       	</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Task/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('task_list'); ?></a></li>
			<li><a href="<?php echo url('Admin/Task/add'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('task_add'); ?></a></li>
			<li class="treeview<?php echo $curMenu['taskgroup']; ?>">
				<a href="#"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup'); ?>
				<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?php echo url('Taskgroup/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup_list'); ?></a></li>
					<li><a href="<?php echo url('Taskgroup/add'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup_add'); ?></a></li>
				</ul>
			</li>
		</ul>
    </li>
	<li class="treeview<?php echo $curMenu['store']; ?><?php echo $curMenu['mystore']; ?><?php echo $curMenu['provider']; ?>">
		<a href="#">
			<i class="fa fa-cloud"></i> <span>云端</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Mystore/store'); ?>" target="_blank"><i class="fa fa-circle-o"></i> 云平台</a></li>
			<li><a href="<?php echo url('Admin/Provider/list'); ?>"><i class="fa fa-circle-o"></i> 第三方</a></li>
			<li class="treeview menu-open">
				<a href="#"><i class="fa fa-circle-o"></i> 已下载
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu" style="display:block;">
					<li><a href="<?php echo url('Admin/Mystore/rule'); ?>"><i class="fa fa-circle-o"></i> 采集规则</a></li>
					<li><a href="<?php echo url('Admin/Mystore/releaseApp'); ?>"><i class="fa fa-circle-o"></i> 发布插件</a></li>
					<li><a href="<?php echo url('Admin/Mystore/funcApp'); ?>"><i class="fa fa-circle-o"></i> 函数插件</a></li>
					<li><a href="<?php echo url('Admin/Mystore/app'); ?>"><i class="fa fa-circle-o"></i> 应用程序</a></li>
				</ul>
			</li>
		</ul>
	</li>
	<li class="treeview<?php echo $curMenu['collected']; ?>">
		<a href="#">
			<i class="fa fa-database"></i> <span><?php echo \think\Lang::get('collected'); ?></span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Collected/list'); ?>"><i class="fa fa-circle-o"></i> 数据列表</a></li>
			<li><a href="<?php echo url('Admin/Collected/chart'); ?>"><i class="fa fa-circle-o"></i> 统计图表</a></li>
		</ul>
	</li>
	<li class="treeview<?php echo $curMenu['user']; ?>">
		<a href="#">
			<i class="fa fa-user"></i> <span><?php echo \think\Lang::get('user'); ?></span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/User/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('user_list'); ?></a></li>
		</ul>
	</li>
	<li class="treeview<?php echo $curMenu['develop']; ?><?php echo $curMenu['tool']; ?>">
		<a href="#">
			<i class="fa fa-wrench"></i> <span>工具&amp;开发</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li class="treeview<?php echo $curMenu['develop']; ?>">
				<a href="#"><i class="fa fa-circle-o"></i> 开发
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?php echo url('Admin/Develop/releaseCms'); ?>"><i class="fa fa-circle-o"></i> CMS发布插件</a></li>
					<li><a href="<?php echo url('Admin/Develop/func'); ?>"><i class="fa fa-circle-o"></i> 函数插件</a></li>
					<li><a href="<?php echo url('Admin/Develop/app'); ?>"><i class="fa fa-circle-o"></i> 应用程序</a></li>
				</ul>
			</li>
			<li><a href="<?php echo url('Admin/Tool/fileManager'); ?>"><i class="fa fa-circle-o"></i> 文件管理</a></li>
			<li><a href="<?php echo url('Admin/Tool/json_tree'); ?>"><i class="fa fa-circle-o"></i> JSON解析</a></li>
			<li><a href="<?php echo url('Admin/Tool/logs'); ?>"><i class="fa fa-circle-o"></i> 错误日志</a></li>
			<li class="treeview<?php echo $curSubm['checkfile']; ?><?php echo $curSubm['checkdb']; ?>">
				<a href="#"><i class="fa fa-circle-o"></i> 校验
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?php echo url('Admin/Tool/checkfile'); ?>"><i class="fa fa-circle-o"></i> 文件</a></li>
					<li><a href="<?php echo url('Admin/Tool/checkdb'); ?>"><i class="fa fa-circle-o"></i> 数据库</a></li>
				</ul>
			</li>
			
			<li class="treeview">
				<a href="#" id="treeview_skins"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('admincp_style'); ?>
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu treeview-skins" style="display:none;">
					<li>
						<div class="checkbox"><label><input id="chk_sidebar_mini" type="checkbox"> <?php echo \think\Lang::get('admincp_sidebar_mini'); ?></label></div>
					</li>
					<li>
						<div id="sidebar_skins"></div>
					</li>
				</ul>
			</li>
		</ul>
	</li>
</ul>
</section>
</aside>
<div class="content-wrapper">
	<section class="content-header">
	<h1><?php echo g_sc('p_name'); ?></h1>
	<ol class="breadcrumb">
		<li><a href="<?php echo url('Admin/Backstage/index'); ?>"><i class="fa fa-dashboard"></i> <?php echo \think\Lang::get('admincp'); ?></a></li>
		<?php echo g_sc('p_nav'); ?>
	</ol>
	</section>
	<section class="content">
	
<div class="box">
	<div class="box-body">
		<div class="alert alert-warning alert-dismissible" style="padding-top:7px;padding-bottom:7px;line-height:20px;">
        	<button type="button" class="close" data-dismiss="alert" aria-hidden="true" style="top:1px;">×</button>
        	已采集网址可防止重复采集，如无必要，请勿删除！
        	<button type="button" id="btn_clear_error" class="btn btn-sm btn-warning" style="padding:2px 10px;">一键清理失败的数据</button>
        </div>
		<form id="form_list" method="post" ajax-submit="true" action="<?php echo url('Collected/op'); ?>">
		<?php echo html_usertoken(); ?>
		<div class="table-responsive">
		<table id="list_table" class="table table-hover datatable">
			<thead>
				<tr>
					<th width="60" class="chk"><?php echo \think\Lang::get('select'); ?></th>
					<th class="url">源网址</th>
					<th>已发布至</th>
					<th>任务名</th>
					<th>发布方式</th>
					<th>添加时间</th>
					<th><?php echo \think\Lang::get('op'); ?></th>
				</tr>
			</thead>
			<tbody>
			<?php if(is_array($dataList) || $dataList instanceof \think\Collection || $dataList instanceof \think\Paginator): if( count($dataList)==0 ) : echo "" ;else: foreach($dataList as $key=>$item): ?>
				<tr>
					<td class="chk"><input type="checkbox" name="ids[]" value="<?php echo $item['id']; ?>" /></td>
					<td class="url"><a href="<?php echo $item['url']; ?>" target="_blank"><?php echo $item['url']; ?></a></td>
					<td class="desc">
						<?php if(!empty($item['error'])): ?>
							失败：<?php echo $item['error']; else: ?>
							<?php echo $item['target']; ?> <?php echo !empty($item['desc'])?$item['desc']:''; endif; ?>
					</td>
					<td><a href="<?php echo url('Admin/Task/edit?id='.$item['task_id']); ?>" target="_blank"><?php echo $taskList[$item['task_id']]; ?></a></td>
					<td><?php echo lang('collected_rele_'.$item['release']); ?></td>
					<td><?php echo date('Y-m-d H:i:s',$item['addtime']); ?></td>
					<td><a href="javascript:;" url="<?php echo url('Collected/op?op=delete&id='.$item['id']); ?>" class="delete">删除</a></td>
				</tr>
			<?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
			<tfoot>
				<tr>
					<td class="chk"><label><input type="checkbox" id="chkall" onclick="checkall(this,'ids[]')" />全部</label></td>
					<td colspan="6">
						<button type="button" class="btn btn btn-danger" id="deleteall"><?php echo \think\Lang::get('delete'); ?></button>
					</td>
				</tr>
    			<?php if(!empty($pagenav)): ?>
				<tr>
					<td colspan="6"><?php echo $pagenav; ?></td>
				</tr>
				<?php endif; ?>
			</tfoot>
		</table>
		</div>
		</form>
	</div>
	<!-- /.box-body -->
</div>
<!-- /.box -->
<div class="list-footer">
	<form id="form_search" method="post" action="<?php echo url('Collected/list'); ?>" class="form-inline">
	<?php echo html_usertoken(); ?>
		<div class="form-group form-group-sm">
			<label>每页显示</label>
		    <select name="num" class="form-control">
			    <option value="50">50条</option>
			    <option value="100">100条</option>
			    <option value="200">200条</option>
			    <option value="500">500条</option>
			    <option value="1000">1000条</option>
		    </select>
	    </div>
		<div class="form-group form-group-sm">
			<label>发布方式</label>
		    <select name="release" class="form-control">
			    <option value="">全部</option>
				<?php if(is_array(\think\Config::get('release_modules')) || \think\Config::get('release_modules') instanceof \think\Collection || \think\Config::get('release_modules') instanceof \think\Paginator): if( count(\think\Config::get('release_modules'))==0 ) : echo "" ;else: foreach(\think\Config::get('release_modules') as $key=>$rele_module): ?>
			    <option value="<?php echo $rele_module; ?>"><?php echo lang('collected_rele_'.$rele_module); ?></option>
			    <?php endforeach; endif; else: echo "" ;endif; ?>
		    </select>
	    </div>
		<div class="form-group form-group-sm">
			<label>网址</label>
        	<input type="text" name="url" class="form-control" value="<?php echo $search['url']; ?>" placeholder="模糊搜索，默认全部">
	    </div>
		<div class="form-group form-group-sm">
			<label>任务名</label>
        	<input type="text" name="task_name" class="form-control" value="<?php echo $search['task_name']; ?>" placeholder="模糊搜索，默认全部">
	    </div>
		<div class="form-group form-group-sm">
		    <select name="status" class="form-control">
			    <option value="">全部</option>
			    <option value="1">发布成功</option>
			    <option value="2">发布失败</option>
		    </select>
	    </div>
        <button type="submit" class="btn btn-default btn-sm"><?php echo \think\Lang::get('search'); ?></button>
	</form>
</div>
<script type="text/javascript">
$('#form_search select[name="num"]').val("<?php echo intval($search['num']); ?>");
$('#form_search select[name="release"]').val("<?php echo $search['release']; ?>");
$('#form_search select[name="status"]').val("<?php echo $search['status']; ?>");
collectedClass.init_list();
</script>

	</section>
</div>
	<div class="control-sidebar-bg"></div>
</div>
<?php if(!is_empty(g_sc('browser_is_old'))): ?>
	<div class="alert alert-danger alert-dismissible fade in" role="alert" style="position:fixed;top:0;z-index:9999;width:100%;padding-top:5px;padding-bottom:5px;border-top-left-radius:0;border-top-right-radius:0;">
    	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
      	您的浏览器版本过低，不能完全展现页面效果，请使用谷歌、火狐或IE10及以上版本的浏览器！
    </div>
<?php endif; if(is_empty(g_sc_c('site','closetrans'))): ?>
<script type="text/javascript">
'use strict';//严格模式
page_translator("/public","<?php echo addslashes($_SERVER['HTTP_ACCEPT_LANGUAGE']); ?>");
</script>
<?php endif; ?>
<footer class="footer-end">
	<p>Powered by <a href="https://www.skycaiji.com" target="_blank">蓝天采集器</a></p>
</footer>
</body>
</html>